import request from "@/services/request.ts";
export const ProductUnitList = async (oid:string)=>{
    return request.get('/product/units',{oid})
}

export const ProductUnitCreate = async (data:ProductUnitFormType)=>{
    return request.post('/product/units',data)
}

export const ProductUnitUpdate = async (id:number,data:ProductUnitFormType)=>{
    return request.put(`/product/units/${id}`,data)
}

export const ProductUnitDelete = async (id:number)=>{
    return request.del(`/product/units/${id}`)
}